package com.tony.pmp.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tony.pmp.model.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Title: SysMenuMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/09/10:05
 * @Description: 菜单管理
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    /**
    * @Description: queryList 获取菜单列表
    * @Param: []
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/21 20:53
    */
    List<SysMenuEntity> queryList();

    /**
    * @Description: queryNotButtonList 获取菜单树形层级列表数据
    * @Param: []
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/22 13:48
    */
    List<SysMenuEntity> queryNotButtonList();

    /**
    * @Description: queryListParentId 根据父级id查询子菜单
    * @Param: [menuId]
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/23 23:09
    */
    List<SysMenuEntity> queryListParentId(Long menuId);

    int deleteByPrimaryKey(Long menuId);

    int insert(SysMenuEntity record);

    int insertSelective(SysMenuEntity record);

    SysMenuEntity selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(SysMenuEntity record);

    int updateByPrimaryKey(SysMenuEntity record);
}